#ifndef _I_API_VIEW_H_
#define _I_API_VIEW_H_

#include "../interface/I_api_Resource.h"

class I_api_View : public I_api_DeviceChild
{
protected:
	I_api_Resource * m_pResource;
	I_api_View(I_api_Resource *pResource, I_api_Device *pDevice) : 
	I_api_DeviceChild(pDevice)
	{
		m_pResource = pResource;
	}
public:
	
	~I_api_View() { m_pResource = NULL; };

	void	GetResource(I_api_Resource ** ppResource)
	{
		if (ppResource) *ppResource = m_pResource;
	}
};

#endif